package com.example.elderlycare.controller.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

public class UserRequestBody {

    @Data
    public static class ChangePassword {
        @NotEmpty
        private String oldPassword;
        @NotEmpty
        private String newPassword;
    }


    @Data
    public static class GetAuthCode {
        @NotBlank
        @Length(min = 11, max = 11)
        private String phoneNumber;
    }

    @Data
    public static class ResetPassword {
        @NotBlank
        private String uuid;
        @NotBlank
        private String code;
        @NotBlank
        private String newPassword;
    }
}
